package com.ruoyi.quality.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 焊缝探伤信息业务对象 quality_seam_rate
 *
 * @author ruoyi
 * @date 2024-01-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QualitySeamRateBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long id;

    /**
     * 零件id
     */
    @NotNull(message = "零件id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long partId;

    /**
     * 部门简称
     */
    @NotBlank(message = "部门简称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptAbbreviation;

    /**
     * 检验员id
     */
    @NotNull(message = "检验员id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long inspector;

    /**
     * 焊工工号
     */
    @NotBlank(message = "焊工工号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

    /**
     * 总长度
     */
    @NotNull(message = "总长度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalLenth;

    /**
     * 缺陷长度
     */
    @NotNull(message = "缺陷长度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long defectLenth;

    /**
     * 合格率
     */
    @NotNull(message = "合格率不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double rate;

    /**
     * 时间
     */
    @NotNull(message = "时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date date;


}
